Skip to content

Conversation

@katrinaager
Copy link
Collaborator

No description provided.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@rcpeene
Copy link
Collaborator

rcpeene commented Jun 6, 2023

Good changes! A few notes I'd make about conventions

  1. Kinda nitpicky but I'd add a space after the # for each comment just for consistency.
  2. For the comments about key errors, i think it'd be more clear to just add to the existing comment about not all exist for all nwb files, could add another line of comment below that says something like Key Errors will arise if the fields don't exist for thsi file
  3. Probably a comment describing the print statements aren't necessary; I'd imagine most users will understand the output.

@katrinaager
Copy link
Collaborator Author

I just committed a version that made updates based on your comment. I'm not sure if the new commit will appear in this PR request, for me, it is only showing that I made 1 commit today, but in my terminal on VSCode it says I successfully made the 2nd commit.

@katrinaager katrinaager changed the title Katrina Initial Edits for Basics Section From Kat Jun 7, 2023
@rcpeene
Copy link
Collaborator

rcpeene commented Jun 7, 2023

For stream_nwb.ipynb, good eye on the markdown! I like that you're considering those things because we want the explanations to be clear and accurate.

I'd say the past tense markdown text was more correct, since in the table of contents, Exploring an NWB File comes before Streaming an NWB File with fsspec. So these changes are probably unnecessary

@rcpeene
Copy link
Collaborator

rcpeene commented Jun 7, 2023

Note that there are merge conflicts from these changes. I think this wouldn't happen with a normal code base but it is happening with Jupyter notebook. This is because when the notebook is rerun on your machine, it changes all of the output cells in the notebook.

We should probably discuss the best way to navigate this because git doesn't account for this kind of change. For posterity's sake I'll describe this here;

For now, the best thing to do to avoid these merge conflicts in the PR is the make sure to git pull -X ours before running git push and resolving the merge conflict on your own machine.

@rcpeene rcpeene changed the title Initial Edits for Basics Section From Kat Initial Edits for Basics Section Jun 7, 2023
@rcpeene
Copy link
Collaborator

rcpeene commented Jun 7, 2023

Additional note on commit messages. Instead of referring to something like "changes based on PR" it might be better to describe concretely what those changes are (to the extent that is possible in a short message; commit messages don't need to be super descriptive). If you want to reference a PR in a commit, you can just write PR #123 at the end of the commit message and github will tag it.

@rcpeene
Copy link
Collaborator

rcpeene commented Jun 7, 2023

Also remove hellworld1.ipnyb

@katrinaager
Copy link
Collaborator Author

I think all of these changes have been made.

"cell_type": "code",
"execution_count": 3,
"id": "67536d37",
"metadata": {},
Copy link
Collaborator

@rcpeene rcpeene Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #2.    dandiset_id = "000021" #the set ID can be found under the title of the dandiset

  • comments referring to a line are typically above the line.
  • spaces after # signs
  • I think most users will probably have a sense for the filepath usage, but maybe a comment above the line that says "# relative filepath" would suffice.


Reply via ReviewNB

"attachments": {},
"cell_type": "markdown",
"id": "5c8b955c",
"metadata": {},
Copy link
Collaborator

@rcpeene rcpeene Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be reworded/restructured to seem a bit more natural with the rest of the text. Perhaps something like "In the cells below, the dandi api i used to facilitate the download. the method... etc. etc. and get_asset_by_path does blah"


Reply via ReviewNB

"cell_type": "code",
"execution_count": 3,
"id": "67536d37",
"metadata": {},
Copy link
Collaborator

@rcpeene rcpeene Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #3.    download_loc = "." 

haha my last feedback must have been confusing.

The 'relative filepath' comment would go above the line with the filepath (download_loc...)

The comment about the dandiset id was good info. If you want to include instructions on that it would go well in the markdown, right after where it says "use its ID in dandiset_id."


Reply via ReviewNB

"attachments": {},
"cell_type": "markdown",
"id": "5c8b955c",
"metadata": {},
Copy link
Collaborator

@rcpeene rcpeene Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make one paragraph, fix spelling typo 'specific'


Reply via ReviewNB

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it already is one paragraph?

"attachments": {},
"cell_type": "markdown",
"id": "ae798e1c",
"metadata": {},
Copy link
Collaborator

@rcpeene rcpeene Jun 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rerun this and push without errors.


Reply via ReviewNB

"dandi_filepath = \"sub-699733573/sub-699733573_ses-715093703.nwb\"\n",
"download_loc = \".\""
]
},
Copy link
Collaborator

@rcpeene rcpeene Jun 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should remove trailing spaces


Reply via ReviewNB

@@ -0,0 +1,61 @@
{
Copy link
Collaborator

@rcpeene rcpeene Jun 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For step one, it reads as though you mean "click here to access any dandiset from the allen institute". Maybe say "access an example 2-Photon Dandiset from the allen institute openscope project"


Reply via ReviewNB

@@ -0,0 +1,61 @@
{
Copy link
Collaborator

@rcpeene rcpeene Jun 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

theres probably some more NWB links you could add in here


Reply via ReviewNB

@rcpeene rcpeene merged commit 7204a9a into dev Jun 26, 2023
@rcpeene rcpeene deleted the katrina branch September 28, 2023 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants